package morenoapp.components.common.model.wrap;

/**
 *
 * @author root
 */
public class ValueWrapper<T> {
    T value;
    public ValueWrapper(T value) {
        this.value = value;
    }
    public T getValue() {
        return value;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final ValueWrapper<T> other = (ValueWrapper<T>) obj;
        if (this.value != other.value && (this.value == null || !this.value.equals(other.value))) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 3;
        hash = 97 * hash + (this.value != null ? this.value.hashCode() : 0);
        return hash;
    }

    
}
